class FruitStore {
    private Factory factory = new Factory();

    // 简化接口1：直接获取处理好的水果
    public Fruit getPreparedFruit(String type) {
        Fruit fruit = factory.CreateFruit(type);
        System.out.println("正在清洗和包装...");
        return fruit;
    }

    // 简化接口2：自动组合套餐
    public void getFruitCombo() {
        System.out.println("=== 生成水果套餐 ===");
        eatFruit(factory.CreateFruit("A"));
        eatFruit(factory.CreateFruit("B"));
        System.out.println("================");
    }

    // 统一食用方法
    private void eatFruit(Fruit fruit) {
        System.out.print("套餐包含：");
        fruit.eat();
    }
}